package org.kl.bf.service.basic;

import java.util.List;

import org.kl.bf.entity.basic.Notice;
import org.kl.bf.repository.basic.NoticeDao;
import org.kl.bf.service.BasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author hqm
 * @CreateTime 2014-3-13 下午9:11:30
 */
// Spring Bean的标识.
@Component
// 默认将类中的所有public函数纳入事务管理.
@Transactional
public class NoticeService extends BasicService<Notice> {

	@Autowired
	private NoticeDao noticeDao;

	public List<Notice> getAllEnableNotice() {
		return noticeDao.findByEnable(1);
	}

}
